home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_riv_camoffset.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  69 lines

  1. # Jones 3D Cog Script
  2. #
  3. # RIV_LockerRaft.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols
  11.  
  12.     message     startup
  13.     message     entered
  14.     message     exited
  15.  
  16.     thing       player      local
  17.     thing       HammerCam
  18.     
  19.     surface     surf0       linkID=1
  20.     surface     surf1       linkID=1
  21.     surface     surf2       linkID=1
  22.     
  23. end
  24.  
  25. # ========================================================================================
  26.  
  27. code
  28.  
  29. startup:
  30.  
  31.     player = GetLocalPlayerThing();
  32.     return;
  33.     
  34. # ========================================================================================
  35.  
  36. entered:
  37.  
  38.     if(GetSenderID() == 1)
  39.     {
  40.         #SetExtCamOffset('0.0 -0.4 0.0');
  41.         SetCameraFOV(120, 1, 1.0);
  42.         SetCollideType(hammerCam, 0);
  43.     }
  44.     
  45.     return;
  46.     
  47. # ========================================================================================
  48.  
  49. exited:
  50.  
  51.     if((GetSenderID() == 1) && (GetSourceRef() == player))
  52.     {
  53.         Sleep(1.0);
  54.         
  55.         if(GetMoveStatus(player) != 6)  # player isn't hanging
  56.         {
  57.             #RestoreExtCam();
  58.             SetCameraFOV(90, 1, 1.0);
  59.             SetCollideType(hammerCam, 3);
  60.         }
  61.     }
  62.  
  63.     return;
  64.  
  65. # ========================================================================================
  66.  
  67. end
  68.  
  69.